home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / c_toolbx.arc / TESTEXEC.C < prev    next >
Encoding:
C/C++ Source or Header  |  1988-03-30  |  1.2 KB  |  66 lines

  1. /* testexec.c - test viewexec.c (exec_cmd function)  */
  2. #include "stdio.h"
  3. #include "cminor.h"
  4. long filesize  ;
  5.  
  6. int open_file(fn)
  7.   char  fn[]  ;
  8.   {
  9.      int   ret   ;
  10.      printf("\n open_file called - fn+ %s\n",fn);
  11.      printf(" retyrn code:")   ;
  12.      scanf("%d",&ret)  ;
  13.      return(ret) ;
  14.   }
  15.  
  16. int set_filesize(chk_cltz)
  17.   int chk_cltz  ;
  18.   {
  19.      printf("\n set_filesize called - chk_ctlz = %d \n",chk_cltz)  ;
  20.      printf(" file size:")  ;
  21.      scanf("%1d",&filesize) ;
  22.   }
  23.  
  24. int close_file()
  25.   {
  26.      printf("\n close_file called\n") ;
  27.   }
  28.  
  29. int move_backward(nlines)
  30.   int   nlines ;
  31.   {
  32.      printf("\n move_backward called nlines= %d ",nlines) ;
  33.   }
  34.  
  35. int move_forward(nlines)
  36.   int   nlines ;
  37.   {
  38.      printf("\n move_forward called nlines= %d ",nlines) ;
  39.   }
  40.  
  41. int display_page()
  42.   {
  43.      printf("\n display_page called ") ;
  44.   }
  45.  
  46. int set_top_page()
  47.   {
  48.      printf("\n set_top_page called ") ;
  49.   }
  50.  
  51. int move_to(pos)
  52.   long pos  ;
  53.   {
  54.      printf("\n move_to called - pos = %d ",pos)  ;
  55.   }
  56.  
  57. long get_pos()
  58.   {
  59.      long  pos ;
  60.  
  61.      printf(" \n get_pos called ") ;
  62.      printf(" \n new position:") ;
  63.      scanf ("%1d",&pos)  ;
  64.      return( pos)  ;
  65.   }
  66.